﻿<UserControl x:Class="SSCCMembership.Login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="1000" d:DesignWidth="800">
    <ScrollViewer ScrollViewer.VerticalScrollBarVisibility="Auto">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="350"/>
                <RowDefinition Height="290"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <StackPanel Grid.Row="1">
                <Image Source="/Shepperton_Club.jpg" Stretch="Uniform" Height="250" ImageOpened="Image_ImageOpened"/>
                <TextBlock TextAlignment="Center" FontSize="48" Foreground="{StaticResource PurpleBrush}">SSCC Membership Login</TextBlock>
            </StackPanel>
            
            <Grid Grid.Row="2" Height="277" Width="447" Margin="0,0,0,15" KeyUp="SignIn_KeyUp">
                <Grid.Projection>
                    <PlaneProjection RotationY="23" RotationX="-21"/>
                </Grid.Projection>
                <Rectangle Margin="15" RadiusX="20" RadiusY="20" StrokeThickness="8" Stroke="{StaticResource PurpleBrush}">
                    <Rectangle.Fill>
                        <RadialGradientBrush GradientOrigin="-1,-1">
                            <GradientStop Color="#FF726F6F" Offset="1"/>
                            <GradientStop Color="White"/>
                        </RadialGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <Button x:Name="BTN" Content="Login" HorizontalAlignment="Right" VerticalAlignment="Bottom" Height="80" Style="{StaticResource ButtonStyle}" Width="200" Click="Login_Click" />
                <Grid Margin="30,30,30,30">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition Width="5"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition Height="100"/>
                    </Grid.RowDefinitions>
                    <TextBlock TextAlignment="Right" FontSize="18.667" VerticalAlignment="Center" Foreground="{StaticResource PurpleBrush}">Username:</TextBlock>
                    <TextBox x:Name="txtUsername" Grid.Column="2" VerticalAlignment="Center" Height="30" FontSize="16"/>
                    <TextBlock Grid.Row="1" TextAlignment="Right" FontSize="18.667" VerticalAlignment="Center"  Foreground="{StaticResource PurpleBrush}">
				Password:</TextBlock>
                    <PasswordBox x:Name="txtPassword" Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" Height="30" FontSize="16"/>
                    <TextBlock Grid.Row="2" Foreground="Red" Text="{Binding}" FontSize="16" TextWrapping="Wrap"/>
                </Grid>
            </Grid>
            
            <!--<Grid Grid.RowSpan="4" Visibility="Collapsed" x:Name="MessageDisplay">
                <Rectangle Opacity="0.5" Fill="black" Margin="0"/>
                <Grid  HorizontalAlignment="Center" VerticalAlignment="Center">
                    <Rectangle Stroke="Black" Margin="-20" RadiusX="20" RadiusY="20">
                        <Rectangle.Fill>
                            <RadialGradientBrush GradientOrigin="-1,-1">
                                <GradientStop Color="#FF726F6F" Offset="1"/>
                                <GradientStop Color="White"/>
                            </RadialGradientBrush>
                        </Rectangle.Fill>
                    </Rectangle>
                    <TextBlock x:Name="MessageDisplayTXT" TextWrapping="Wrap" MaxWidth="250"> Hello World</TextBlock>

                </Grid>
                <Button x:Name="MessageDisplayBTN" Opacity="0" KeyUp="MessageDisplay_KeyUp" Click="MessageDisplay_Click" />
            </Grid>-->
        </Grid>
    </ScrollViewer>
</UserControl>
